package adv7.bank;

//账号
public class Account {
	private String no;
	private int money;

	public Account(String n, int m) {
		this.no = n;
		this.money = m;
	}

	public void show() {
		System.out.println("账号:" + no + ",余额是" + money + "元");
	}

	public String getNo() {
		return no;
	}

	public int getMoney() {
		return money;
	}

	// 取钱
	public void takeMoney(int m) {
		money -= m;
	}
}
